/**
 * Created by apple on 2017/11/12.
 */

import React, {Component} from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';
import {Button} from 'antd-mobile'
import Request from '../publicServer/request'

export default class MyDetail extends Component {

  constructor(props) {
    super(props);
    this.state = {
      boolean:true
    }
  }
  componentDidMount() {
    console.log(123);
    let {navigation} = this.props;
    console.log(this.props);
    console.log(navigation.state);

  }

  goToDetail() {
    let {navigation} = this.props;
    navigation.goBack()
  }

  render() {
    console.log(Button)
    return (
      <View style={styles.container}>
        <Text>我的页面</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

AppRegistry.registerComponent('MyDetail', () => MyDetail);
